import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { StationListComponent } from './station/list/list.component';
import { VolunteerListComponent } from './volunteer/list/list.component';
import { BaikeListComponent } from './baike/list/list.component';
import { BlogListComponent } from './blog/list/list.component';
import { MessageListComponent } from './message/list/list.component';
import { ProblemListComponent } from './problem/list/list.component';

const routes: Routes = [
  { path: 'station/list', component: StationListComponent, data: { title: '驿站' } },
  { path: 'volunteer/list', component: VolunteerListComponent, data: { title: '志愿者' } },
  { path: 'baike/list', component: BaikeListComponent, data: { title: '百科' } },
  { path: 'blog/list', component: BlogListComponent, data: { title: '博客' } },
  { path: 'message/list', component: MessageListComponent, data: { title: '用户反馈' } },
  { path: 'problem/list', component: ProblemListComponent, data: { title: '常见问题' } },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class PetsRoutingModule {}
